import request from "./request";

/**
 * 获取所有分类的面试题标题
 */
export function getInterviewTitle() {
  return request({
    url: "/api/interview/interviewTitle",
    method: "get",
  });
}

/**
 * 根据id获得面试题详情
 */
export function getInterviewById(id) {
  return request({
    url: `/api/interview/${id}`,
    method: "get",
  });
}
